package com.tianzehua.jvm.classloader;

public class MyTest10 {
    public static void main(String[] args) throws  Exception{
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        Class clazz1 = loader.loadClass("com.tianzehua.jvm.classloader.CL");
        System.out.println(clazz1);
        System.out.println("------------------------");
        Class clazz2 =Class.forName("com.tianzehua.jvm.classloader.CL");
        System.out.println(clazz2);
    }
}
class  CL{
    static {
        System.out.println("cL");
    }
}